package com.youkeyi.ddy.cloud.basic.pub.corp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 主体（麒麟、LAB）表
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-05-31
 */
@TableName("sys_corp")
public class SysCorp extends Model<SysCorp> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("primary_key")
    private String primaryKey;

    /**
     * 解决并发更新问题,每次更新需要用 uuid 做比较判断数据是否已变更
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 旧的uuid,mybatis 更新时需要
     */
    @TableField("old_uuid")
    private String oldUuid;

    /**
     * 主体名称
     */
    @TableField("name")
    private String name;

    /**
     * 主体编码 编码规则：TP+时间(精确到毫秒)  (临时主体:TP 续费主体:RN 买断主体:BY)
     */
    @TableField("code")
    private String code;

    /**
     * 主体类别 （0 客服、1顾问、2服务 3 财务 4 医疗 5 诊所 6 人事 7 总务 8 诊所 9 市场部 10 其他 ）
     */
    @TableField("category")
    private Integer category;

    /**
     * 主体类型 （0 客服、1顾问、2服务 3 财务 4 医疗 5 诊所 6 人事 7 总务 8 诊所 9 市场部 10 其他 ）
     */
    @TableField("type")
    private Integer type;

    /**
     * 授权类型 （0 订阅 1 续费 2 永久）
     */
    @TableField("auth_type")
    private Integer authType;

    /**
     * 主体使用当前系统生效时间
     */
    @TableField("effective_time")
    private Date effectiveTime;

    /**
     * 主体使用当前系统失效时间
     */
    @TableField("expired_time")
    private Date expiredTime;

    /**
     * 账户
     */
    @TableField("app_key")
    private String appKey;

    /**
     * 密钥
     */
    @TableField("app_secret")
    private String appSecret;

    /**
     * 主体联系人
     */
    @TableField("user_name")
    private String userName;

    /**
     * 主体联系电话
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * 主体邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 主体营业执照
     */
    @TableField("business_lincese_name")
    private String businessLinceseName;

    /**
     * 主体营业执照号
     */
    @TableField("business_license_no")
    private String businessLicenseNo;

    /**
     * 左logo
     */
    @TableField("left_logo")
    private String leftLogo;

    /**
     * 右logo
     */
    @TableField("right_logo")
    private String rightLogo;

    /**
     * 管理归属
     */
    @TableField("management_attribution")
    private String managementAttribution;

    /**
     * 坐标数据
     */
    @TableField("coordinate")
    private String coordinate;

    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField("create_user_key")
    private String createUserKey;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_user_key")
    private String updateUserKey;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getOldUuid() {
        return oldUuid;
    }

    public void setOldUuid(String oldUuid) {
        this.oldUuid = oldUuid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }
    public Date getEffectiveTime() {
        return effectiveTime;
    }

    public void setEffectiveTime(Date effectiveTime) {
        this.effectiveTime = effectiveTime;
    }
    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }
    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }
    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getBusinessLinceseName() {
        return businessLinceseName;
    }

    public void setBusinessLinceseName(String businessLinceseName) {
        this.businessLinceseName = businessLinceseName;
    }
    public String getBusinessLicenseNo() {
        return businessLicenseNo;
    }

    public void setBusinessLicenseNo(String businessLicenseNo) {
        this.businessLicenseNo = businessLicenseNo;
    }
    public String getLeftLogo() {
        return leftLogo;
    }

    public void setLeftLogo(String leftLogo) {
        this.leftLogo = leftLogo;
    }
    public String getRightLogo() {
        return rightLogo;
    }

    public void setRightLogo(String rightLogo) {
        this.rightLogo = rightLogo;
    }
    public String getManagementAttribution() {
        return managementAttribution;
    }

    public void setManagementAttribution(String managementAttribution) {
        this.managementAttribution = managementAttribution;
    }
    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getCreateUserKey() {
        return createUserKey;
    }

    public void setCreateUserKey(String createUserKey) {
        this.createUserKey = createUserKey;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUserKey() {
        return updateUserKey;
    }

    public void setUpdateUserKey(String updateUserKey) {
        this.updateUserKey = updateUserKey;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysCorp{" +
            "id=" + id +
            ", primaryKey=" + primaryKey +
            ", uuid=" + uuid +
            ", oldUuid=" + oldUuid +
            ", name=" + name +
            ", code=" + code +
            ", category=" + category +
            ", type=" + type +
            ", authType=" + authType +
            ", effectiveTime=" + effectiveTime +
            ", expiredTime=" + expiredTime +
            ", appKey=" + appKey +
            ", appSecret=" + appSecret +
            ", userName=" + userName +
            ", userPhone=" + userPhone +
            ", email=" + email +
            ", businessLinceseName=" + businessLinceseName +
            ", businessLicenseNo=" + businessLicenseNo +
            ", leftLogo=" + leftLogo +
            ", rightLogo=" + rightLogo +
            ", managementAttribution=" + managementAttribution +
            ", coordinate=" + coordinate +
            ", isDeleted=" + isDeleted +
            ", createUserKey=" + createUserKey +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
            ", updateUserKey=" + updateUserKey +
            ", updateUserName=" + updateUserName +
            ", updateTime=" + updateTime +
        "}";
    }
}
